using System;
namespace HouseControl
{
    class Door_Bell
    {    //turn on the alarm
        public static void bell_alarm_switcher(uint data1, uint data2, DateTime date)
        {

            if (data2 == 1)  //to know if the button pressed is released or not 
            {
                Program.door_bell_state = true;  // change bell status 
                Program.alarm.SetAlarm_SPI(); //trigger on the alarm
               
            }
        }

    }
}
